//
//  XLConversationInputView.h
//  XLConversationInputViewDemo
//
//  Created by ilongge on 2022/8/2.
//
@class PHAsset;
@class JFCCCoordinate2D; 

#import <UIKit/UIKit.h>
#import <XLConversationInputView/XLMoreItemTypeHeader.h>
#import <XLConversationInputView/XLMovEncodeToMpegTool.h>
#import <XLConversationInputView/XLCvstInputMoreItemModel.h>
#import <XLConversationInputView/XLBasicViewController.h>
#import <XLConversationInputView/XLFileListViewController.h>


@interface XLConversationInputView : UIView
/// 最大语音长度
@property (nonatomic, assign) float maxVoiceDuration;
/// 最小语音长度
@property (nonatomic, assign) float minVoiceDuration;
/// 最大文本长度
@property (nonatomic, assign) NSInteger maxMessageTextLength;
/// 回调
@property (nonatomic, copy) void(^inputViewRectBlock)(CGRect rect, NSTimeInterval duration);

#pragma mark Mothed

- (instancetype)initWithViewController:(UIViewController <XLConversationInputViewProtocol> *)viewController;

- (void)enableKeyboardNotification:(BOOL)enable;

- (void)showInputView;

- (void)rebackToInputText;

- (void)insertAtSomeoneText:(NSString *)atText;

+ (NSAttributedString *)replaceEmojiTextToEmojiImageWithText:(NSString *)text;

- (void)setDisable:(BOOL)disable andMessage:(NSString *)message; 

- (void)moreItemAcitonFile:(void(^)(NSArray<NSDictionary *> *files))selectFilesHandler;

- (NSString *)messageText;

@end


